import axios from "./request.js";
//获取天气信息
const getWeatherByCityNameHttp = (cityName) => {
  return axios.get(`/map/weather/weatherInfo?city=${cityName}`);
};
//获取位置
const getLocationByCityNameHttp = (cityName) => {
  return axios.get(`/map/geocode/geo?address=${cityName}`);
};

export { getWeatherByCityNameHttp,getLocationByCityNameHttp };